var cols = [
    {name: 'name', display: '名称', width: 40, type: 'text', disabled: true},
    {name: 'type', display: '类型', width: 40, type: 'text', disabled: true,text_align:"left"},
    {name: 'discription', display: '描述', width: 150, type: 'text', disabled: true,text_align:"left"},
    {name:'default',display:'默认值',width:40,type:'text', disabled: true,text_align:"left"}
];




var rowsdl = [
    {"name": "data", "type": "[ ]", "discription": "数据对象——格式:[{name:'',value:''}]", "default": "[ ]"},
    {"name": "selected", "type": "[ ]", "discription": "初始化默认选中项[2,3,4] 其中是value值", "default": "[ ]"},
    {"name": "hideSelect", "type": "string", "discription": "表格列标题文本对齐方式", "default": "left"},
    {"name": "tpl_addBtnText", "type": "string", "discription": "向右移动按钮", "default": "&nbsp;添加&nbsp;&gt;"},
    {"name": "tpl_removeBtnText", "type": "string", "discription": "向左移动按钮", "default": "&lt;&nbsp;删除&nbsp;"},
    {"name": "height", "type": "string", "discription": "列表区域高度", "default": "190px"},
    {"name": "width", "type": "string", "discription": "列表区域宽度", "default": "180px"},
    {"name": "onChange()", "type": "boolean", "discription": "回调函数", "default": ""}

];

avalon.library("aoyou", {
    $ready: function () {
        avalon.log("控件已经构建完毕")
    }
})

define(["../../component/doublelist/avalon.doublelist","../../component/newtable/avalon.newtable"], function(){
    var tv = avalon.define({
        $id:"test1",
        $opts: {
            data: [
                {name: "Lily", value: 1},
                {name: "Lucy", value: 2},
                {name: "Tom", value: 3},
                {name: "Harry", value: 4},
                {name: "Jim", value: 5},
                {name: "Tom", value: 3},
                {name: "Harry", value: 4},
                {name: "Jim", value: 5},
                {name: "Tom", value: 3},
                {name: "Harry", value: 4},
                {name: "Jim", value: 5}
            ]
        },
        $tddlopt:{
            title_align:"center",
            title:"平衡木属性",
            cols:cols,
            rows:rowsdl,
            autoLoad:true,
            bar:true
        }

    });
    return tv;
});